<?php
#include "models/home_model.php"; 
include_once('controllers/backend_controller.php');
class Home_Controller extends Backend_Controller
{
	public $model; 
	public $action = "index";
	public function  __construct()
	{
		parent::__construct();
		if(isset($_GET["action"])) $this->action = $_GET["action"];
		if(method_exists($this, $this->action))
			$this->{$this->action}();
		else	include "views/errors/index.php";
	}

	public function index() 
	{
		include "views/home/index.php";
	} 
}
?>
